package org.monkey.example.pay.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.monkey.example.pay.entity.dto.UserAmountDto;


@Data
@ApiModel("用户钱包")
public class UserAmountVo {

  @ApiModelProperty("钱包id")
  private Long id;
  @ApiModelProperty("账户id")
  private Long accountId;
  @ApiModelProperty("用户余额")
  private Double totalAmount;

  public UserAmountVo(UserAmountDto orderDto) {
    this.id = orderDto.getId();
    this.accountId = orderDto.getAccountId();
    this.totalAmount = orderDto.getTotalAmount().doubleValue();
  }
}
